3.1.62 \(\int \frac {(a+b \log (c (d+e x)^n))^4}{f+g x} \, dx\) [62]

Optimal. Leaf size=205 \[ \frac {\left (a+b \log \left (c (d+e x)^n\right )\right )^4 \log \left (\frac {e (f+g x)}{e f-d g}\right )}{g}+\frac {4 b n \left (a+b \log \left (c (d+e x)^n\right )\right )^3 \text {Li}_2\left (-\frac {g (d+e x)}{e f-d g}\right )}{g}-\frac {12 b^2 n^2 \left (a+b \log \left (c (d+e x)^n\right )\right )^2 \text {Li}_3\left (-\frac {g (d+e x)}{e f-d g}\right )}{g}+\frac {24 b^3 n^3 \left (a+b \log \left (c (d+e x)^n\right )\right ) \text {Li}_4\left (-\frac {g (d+e x)}{e f-d g}\right )}{g}-\frac {24 b^4 n^4 \text {Li}_5\left (-\frac {g (d+e x)}{e f-d g}\right )}{g} \]

[Out]

(a+b*ln(c*(e*x+d)^n))^4*ln(e*(g*x+f)/(-d*g+e*f))/g+4*b*n*(a+b*ln(c*(e*x+d)^n))^3*polylog(2,-g*(e*x+d)/(-d*g+e*
f))/g-12*b^2*n^2*(a+b*ln(c*(e*x+d)^n))^2*polylog(3,-g*(e*x+d)/(-d*g+e*f))/g+24*b^3*n^3*(a+b*ln(c*(e*x+d)^n))*p
olylog(4,-g*(e*x+d)/(-d*g+e*f))/g-24*b^4*n^4*polylog(5,-g*(e*x+d)/(-d*g+e*f))/g

________________________________________________________________________________________

Rubi [A]
time = 0.16, antiderivative size = 205, normalized size of antiderivative = 1.00, number of steps used = 6, number of rules used = 5, integrand size = 24, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.208, Rules used = {2443, 2481, 2421, 2430, 6724} \begin {gather*} \frac {24 b^3 n^3 \text {PolyLog}\left (4,-\frac {g (d+e x)}{e f-d g}\right ) \left (a+b \log \left (c (d+e x)^n\right )\right )}{g}-\frac {12 b^2 n^2 \text {PolyLog}\left (3,-\frac {g (d+e x)}{e f-d g}\right ) \left (a+b \log \left (c (d+e x)^n\right )\right )^2}{g}+\frac {4 b n \text {PolyLog}\left (2,-\frac {g (d+e x)}{e f-d g}\right ) \left (a+b \log \left (c (d+e x)^n\right )\right )^3}{g}-\frac {24 b^4 n^4 \text {PolyLog}\left (5,-\frac {g (d+e x)}{e f-d g}\right )}{g}+\frac {\log \left (\frac {e (f+g x)}{e f-d g}\right ) \left (a+b \log \left (c (d+e x)^n\right )\right )^4}{g} \end {gather*}

Antiderivative was successfully verified.

[In]

Int[(a + b*Log[c*(d + e*x)^n])^4/(f + g*x),x]

[Out]

((a + b*Log[c*(d + e*x)^n])^4*Log[(e*(f + g*x))/(e*f - d*g)])/g + (4*b*n*(a + b*Log[c*(d + e*x)^n])^3*PolyLog[
2, -((g*(d + e*x))/(e*f - d*g))])/g - (12*b^2*n^2*(a + b*Log[c*(d + e*x)^n])^2*PolyLog[3, -((g*(d + e*x))/(e*f
 - d*g))])/g + (24*b^3*n^3*(a + b*Log[c*(d + e*x)^n])*PolyLog[4, -((g*(d + e*x))/(e*f - d*g))])/g - (24*b^4*n^
4*PolyLog[5, -((g*(d + e*x))/(e*f - d*g))])/g

Rule 2421

Int[(Log[(d_.)*((e_) + (f_.)*(x_)^(m_.))]*((a_.) + Log[(c_.)*(x_)^(n_.)]*(b_.))^(p_.))/(x_), x_Symbol] :> Simp
[(-PolyLog[2, (-d)*f*x^m])*((a + b*Log[c*x^n])^p/m), x] + Dist[b*n*(p/m), Int[PolyLog[2, (-d)*f*x^m]*((a + b*L
og[c*x^n])^(p - 1)/x), x], x] /; FreeQ[{a, b, c, d, e, f, m, n}, x] && IGtQ[p, 0] && EqQ[d*e, 1]

Rule 2430

Int[(((a_.) + Log[(c_.)*(x_)^(n_.)]*(b_.))^(p_.)*PolyLog[k_, (e_.)*(x_)^(q_.)])/(x_), x_Symbol] :> Simp[PolyLo
g[k + 1, e*x^q]*((a + b*Log[c*x^n])^p/q), x] - Dist[b*n*(p/q), Int[PolyLog[k + 1, e*x^q]*((a + b*Log[c*x^n])^(
p - 1)/x), x], x] /; FreeQ[{a, b, c, e, k, n, q}, x] && GtQ[p, 0]

Rule 2443

Int[((a_.) + Log[(c_.)*((d_) + (e_.)*(x_))^(n_.)]*(b_.))^(p_)/((f_.) + (g_.)*(x_)), x_Symbol] :> Simp[Log[e*((
f + g*x)/(e*f - d*g))]*((a + b*Log[c*(d + e*x)^n])^p/g), x] - Dist[b*e*n*(p/g), Int[Log[(e*(f + g*x))/(e*f - d
*g)]*((a + b*Log[c*(d + e*x)^n])^(p - 1)/(d + e*x)), x], x] /; FreeQ[{a, b, c, d, e, f, g, n, p}, x] && NeQ[e*
f - d*g, 0] && IGtQ[p, 1]

Rule 2481

Int[((a_.) + Log[(c_.)*((d_) + (e_.)*(x_))^(n_.)]*(b_.))^(p_.)*((f_.) + Log[(h_.)*((i_.) + (j_.)*(x_))^(m_.)]*
(g_.))*((k_.) + (l_.)*(x_))^(r_.), x_Symbol] :> Dist[1/e, Subst[Int[(k*(x/d))^r*(a + b*Log[c*x^n])^p*(f + g*Lo
g[h*((e*i - d*j)/e + j*(x/e))^m]), x], x, d + e*x], x] /; FreeQ[{a, b, c, d, e, f, g, h, i, j, k, l, n, p, r},
 x] && EqQ[e*k - d*l, 0]

Rule 6724

Int[PolyLog[n_, (c_.)*((a_.) + (b_.)*(x_))^(p_.)]/((d_.) + (e_.)*(x_)), x_Symbol] :> Simp[PolyLog[n + 1, c*(a
+ b*x)^p]/(e*p), x] /; FreeQ[{a, b, c, d, e, n, p}, x] && EqQ[b*d, a*e]

Rubi steps

\begin {align*} \int \frac {\left (a+b \log \left (c (d+e x)^n\right )\right )^4}{f+g x} \, dx &=\frac {\left (a+b \log \left (c (d+e x)^n\right )\right )^4 \log \left (\frac {e (f+g x)}{e f-d g}\right )}{g}-\frac {(4 b e n) \int \frac {\left (a+b \log \left (c (d+e x)^n\right )\right )^3 \log \left (\frac {e (f+g x)}{e f-d g}\right )}{d+e x} \, dx}{g}\\ &=\frac {\left (a+b \log \left (c (d+e x)^n\right )\right )^4 \log \left (\frac {e (f+g x)}{e f-d g}\right )}{g}-\frac {(4 b n) \text {Subst}\left (\int \frac {\left (a+b \log \left (c x^n\right )\right )^3 \log \left (\frac {e \left (\frac {e f-d g}{e}+\frac {g x}{e}\right )}{e f-d g}\right )}{x} \, dx,x,d+e x\right )}{g}\\ &=\frac {\left (a+b \log \left (c (d+e x)^n\right )\right )^4 \log \left (\frac {e (f+g x)}{e f-d g}\right )}{g}+\frac {4 b n \left (a+b \log \left (c (d+e x)^n\right )\right )^3 \text {Li}_2\left (-\frac {g (d+e x)}{e f-d g}\right )}{g}-\frac {\left (12 b^2 n^2\right ) \text {Subst}\left (\int \frac {\left (a+b \log \left (c x^n\right )\right )^2 \text {Li}_2\left (-\frac {g x}{e f-d g}\right )}{x} \, dx,x,d+e x\right )}{g}\\ &=\frac {\left (a+b \log \left (c (d+e x)^n\right )\right )^4 \log \left (\frac {e (f+g x)}{e f-d g}\right )}{g}+\frac {4 b n \left (a+b \log \left (c (d+e x)^n\right )\right )^3 \text {Li}_2\left (-\frac {g (d+e x)}{e f-d g}\right )}{g}-\frac {12 b^2 n^2 \left (a+b \log \left (c (d+e x)^n\right )\right )^2 \text {Li}_3\left (-\frac {g (d+e x)}{e f-d g}\right )}{g}+\frac {\left (24 b^3 n^3\right ) \text {Subst}\left (\int \frac {\left (a+b \log \left (c x^n\right )\right ) \text {Li}_3\left (-\frac {g x}{e f-d g}\right )}{x} \, dx,x,d+e x\right )}{g}\\ &=\frac {\left (a+b \log \left (c (d+e x)^n\right )\right )^4 \log \left (\frac {e (f+g x)}{e f-d g}\right )}{g}+\frac {4 b n \left (a+b \log \left (c (d+e x)^n\right )\right )^3 \text {Li}_2\left (-\frac {g (d+e x)}{e f-d g}\right )}{g}-\frac {12 b^2 n^2 \left (a+b \log \left (c (d+e x)^n\right )\right )^2 \text {Li}_3\left (-\frac {g (d+e x)}{e f-d g}\right )}{g}+\frac {24 b^3 n^3 \left (a+b \log \left (c (d+e x)^n\right )\right ) \text {Li}_4\left (-\frac {g (d+e x)}{e f-d g}\right )}{g}-\frac {\left (24 b^4 n^4\right ) \text {Subst}\left (\int \frac {\text {Li}_4\left (-\frac {g x}{e f-d g}\right )}{x} \, dx,x,d+e x\right )}{g}\\ &=\frac {\left (a+b \log \left (c (d+e x)^n\right )\right )^4 \log \left (\frac {e (f+g x)}{e f-d g}\right )}{g}+\frac {4 b n \left (a+b \log \left (c (d+e x)^n\right )\right )^3 \text {Li}_2\left (-\frac {g (d+e x)}{e f-d g}\right )}{g}-\frac {12 b^2 n^2 \left (a+b \log \left (c (d+e x)^n\right )\right )^2 \text {Li}_3\left (-\frac {g (d+e x)}{e f-d g}\right )}{g}+\frac {24 b^3 n^3 \left (a+b \log \left (c (d+e x)^n\right )\right ) \text {Li}_4\left (-\frac {g (d+e x)}{e f-d g}\right )}{g}-\frac {24 b^4 n^4 \text {Li}_5\left (-\frac {g (d+e x)}{e f-d g}\right )}{g}\\ \end {align*}

________________________________________________________________________________________

Mathematica [B] Leaf count is larger than twice the leaf count of optimal. \(503\) vs. \(2(205)=410\).
time = 0.10, size = 503, normalized size = 2.45 \begin {gather*} \frac {\left (a-b n \log (d+e x)+b \log \left (c (d+e x)^n\right )\right )^4 \log (f+g x)+4 b n \left (a-b n \log (d+e x)+b \log \left (c (d+e x)^n\right )\right )^3 \left (\log (d+e x) \log \left (\frac {e (f+g x)}{e f-d g}\right )+\text {Li}_2\left (\frac {g (d+e x)}{-e f+d g}\right )\right )+6 b^2 n^2 \left (a-b n \log (d+e x)+b \log \left (c (d+e x)^n\right )\right )^2 \left (\log ^2(d+e x) \log \left (\frac {e (f+g x)}{e f-d g}\right )+2 \log (d+e x) \text {Li}_2\left (\frac {g (d+e x)}{-e f+d g}\right )-2 \text {Li}_3\left (\frac {g (d+e x)}{-e f+d g}\right )\right )-4 b^3 n^3 \left (-a+b n \log (d+e x)-b \log \left (c (d+e x)^n\right )\right ) \left (\log ^3(d+e x) \log \left (\frac {e (f+g x)}{e f-d g}\right )+3 \log ^2(d+e x) \text {Li}_2\left (\frac {g (d+e x)}{-e f+d g}\right )-6 \log (d+e x) \text {Li}_3\left (\frac {g (d+e x)}{-e f+d g}\right )+6 \text {Li}_4\left (\frac {g (d+e x)}{-e f+d g}\right )\right )+b^4 n^4 \left (\log ^4(d+e x) \log \left (\frac {e (f+g x)}{e f-d g}\right )+4 \log ^3(d+e x) \text {Li}_2\left (\frac {g (d+e x)}{-e f+d g}\right )-12 \log ^2(d+e x) \text {Li}_3\left (\frac {g (d+e x)}{-e f+d g}\right )+24 \log (d+e x) \text {Li}_4\left (\frac {g (d+e x)}{-e f+d g}\right )-24 \text {Li}_5\left (\frac {g (d+e x)}{-e f+d g}\right )\right )}{g} \end {gather*}

Antiderivative was successfully verified.

[In]

Integrate[(a + b*Log[c*(d + e*x)^n])^4/(f + g*x),x]

[Out]

((a - b*n*Log[d + e*x] + b*Log[c*(d + e*x)^n])^4*Log[f + g*x] + 4*b*n*(a - b*n*Log[d + e*x] + b*Log[c*(d + e*x
)^n])^3*(Log[d + e*x]*Log[(e*(f + g*x))/(e*f - d*g)] + PolyLog[2, (g*(d + e*x))/(-(e*f) + d*g)]) + 6*b^2*n^2*(
a - b*n*Log[d + e*x] + b*Log[c*(d + e*x)^n])^2*(Log[d + e*x]^2*Log[(e*(f + g*x))/(e*f - d*g)] + 2*Log[d + e*x]
*PolyLog[2, (g*(d + e*x))/(-(e*f) + d*g)] - 2*PolyLog[3, (g*(d + e*x))/(-(e*f) + d*g)]) - 4*b^3*n^3*(-a + b*n*
Log[d + e*x] - b*Log[c*(d + e*x)^n])*(Log[d + e*x]^3*Log[(e*(f + g*x))/(e*f - d*g)] + 3*Log[d + e*x]^2*PolyLog
[2, (g*(d + e*x))/(-(e*f) + d*g)] - 6*Log[d + e*x]*PolyLog[3, (g*(d + e*x))/(-(e*f) + d*g)] + 6*PolyLog[4, (g*
(d + e*x))/(-(e*f) + d*g)]) + b^4*n^4*(Log[d + e*x]^4*Log[(e*(f + g*x))/(e*f - d*g)] + 4*Log[d + e*x]^3*PolyLo
g[2, (g*(d + e*x))/(-(e*f) + d*g)] - 12*Log[d + e*x]^2*PolyLog[3, (g*(d + e*x))/(-(e*f) + d*g)] + 24*Log[d + e
*x]*PolyLog[4, (g*(d + e*x))/(-(e*f) + d*g)] - 24*PolyLog[5, (g*(d + e*x))/(-(e*f) + d*g)]))/g

________________________________________________________________________________________

Maple [C] Result contains higher order function than in optimal. Order 9 vs. order 4.
time = 1.42, size = 33189, normalized size = 161.90

method result size
risch \(\text {Expression too large to display}\) \(33189\)

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((a+b*ln(c*(e*x+d)^n))^4/(g*x+f),x,method=_RETURNVERBOSE)

[Out]

result too large to display

________________________________________________________________________________________

Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((a+b*log(c*(e*x+d)^n))^4/(g*x+f),x, algorithm="maxima")

[Out]

a^4*log(g*x + f)/g + integrate((b^4*log((x*e + d)^n)^4 + b^4*log(c)^4 + 4*a*b^3*log(c)^3 + 6*a^2*b^2*log(c)^2
+ 4*a^3*b*log(c) + 4*(b^4*log(c) + a*b^3)*log((x*e + d)^n)^3 + 6*(b^4*log(c)^2 + 2*a*b^3*log(c) + a^2*b^2)*log
((x*e + d)^n)^2 + 4*(b^4*log(c)^3 + 3*a*b^3*log(c)^2 + 3*a^2*b^2*log(c) + a^3*b)*log((x*e + d)^n))/(g*x + f),
x)

________________________________________________________________________________________

Fricas [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((a+b*log(c*(e*x+d)^n))^4/(g*x+f),x, algorithm="fricas")

[Out]

integral((b^4*log((x*e + d)^n*c)^4 + 4*a*b^3*log((x*e + d)^n*c)^3 + 6*a^2*b^2*log((x*e + d)^n*c)^2 + 4*a^3*b*l
og((x*e + d)^n*c) + a^4)/(g*x + f), x)

________________________________________________________________________________________

Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {\left (a + b \log {\left (c \left (d + e x\right )^{n} \right )}\right )^{4}}{f + g x}\, dx \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((a+b*ln(c*(e*x+d)**n))**4/(g*x+f),x)

[Out]

Integral((a + b*log(c*(d + e*x)**n))**4/(f + g*x), x)

________________________________________________________________________________________

Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((a+b*log(c*(e*x+d)^n))^4/(g*x+f),x, algorithm="giac")

[Out]

integrate((b*log((x*e + d)^n*c) + a)^4/(g*x + f), x)

________________________________________________________________________________________

Mupad [F]
time = 0.00, size = -1, normalized size = -0.00 \begin {gather*} \int \frac {{\left (a+b\,\ln \left (c\,{\left (d+e\,x\right )}^n\right )\right )}^4}{f+g\,x} \,d x \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((a + b*log(c*(d + e*x)^n))^4/(f + g*x),x)

[Out]

int((a + b*log(c*(d + e*x)^n))^4/(f + g*x), x)

________________________________________________________________________________________